mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 17:21:05 +00:00
avformat/smoothstreamingenc: Move buffers to the end of structs
This reduces codesize because the offsets of commonly used elements are now smaller and thus need less bytes to encode in ptr+offset addressing modes (with GCC 11.2 on x64: 0x1b8b -> 0x1a7b). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
847d199138
commit
228b25ad9b
@ -40,17 +40,15 @@
|
|||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
|
|
||||||
typedef struct Fragment {
|
typedef struct Fragment {
|
||||||
char file[1024];
|
|
||||||
char infofile[1024];
|
|
||||||
int64_t start_time, duration;
|
int64_t start_time, duration;
|
||||||
int n;
|
int n;
|
||||||
int64_t start_pos, size;
|
int64_t start_pos, size;
|
||||||
|
char file[1024];
|
||||||
|
char infofile[1024];
|
||||||
} Fragment;
|
} Fragment;
|
||||||
|
|
||||||
typedef struct OutputStream {
|
typedef struct OutputStream {
|
||||||
AVFormatContext *ctx;
|
AVFormatContext *ctx;
|
||||||
char dirname[1024];
|
|
||||||
uint8_t iobuf[32768];
|
|
||||||
URLContext *out; // Current output stream where all output is written
|
URLContext *out; // Current output stream where all output is written
|
||||||
URLContext *out2; // Auxiliary output stream where all output is also written
|
URLContext *out2; // Auxiliary output stream where all output is also written
|
||||||
URLContext *tail_out; // The actual main output stream, if we're currently seeked back to write elsewhere
|
URLContext *tail_out; // The actual main output stream, if we're currently seeked back to write elsewhere
|
||||||
@ -64,6 +62,8 @@ typedef struct OutputStream {
|
|||||||
char *private_str;
|
char *private_str;
|
||||||
int packet_size;
|
int packet_size;
|
||||||
int audio_tag;
|
int audio_tag;
|
||||||
|
char dirname[1024];
|
||||||
|
uint8_t iobuf[32768];
|
||||||
} OutputStream;
|
} OutputStream;
|
||||||
|
|
||||||
typedef struct SmoothStreamingContext {
|
typedef struct SmoothStreamingContext {
|
||||||
|
Loading…
Reference in New Issue
Block a user