[FFmpeg-devel] [PATCH] ffmpeg.c: Adding a variable to OutputStream to accommodate GOP change
Chiranjeevi Melam
cmelam at rgbnetworks.com
Wed Aug 31 17:56:01 CEST 2011
Hi ,
Added a variable to "OutputStream" structure to accommodate GOP change. Otherwise we get the segmentation fault.
Thanks,
Chiru
diff --git a/ffmpeg/ffmpeg_orig.c b/ffmpeg/ffmpeg_new.c
index 95b3252..c169c1a 100755
--- a/ffmpeg/ffmpeg_orig.c
+++ b/ffmpeg/ffmpeg_new.c
@@ -305,6 +305,7 @@ typedef struct OutputStream {
AVFilterGraph *graph;
#endif
+ int ostream_index;
int sws_flags;
AVDictionary *opts;
} OutputStream;
@@ -2204,6 +2205,7 @@ static int transcode(AVFormatContext **output_files,
/* for each output stream, we compute the right encoding parameters */
for(i=0;i<nb_ostreams;i++) {
ost = ost_table[i];
+ ost->ostream_index = i;
os = output_files[ost->file_index];
ist = &input_streams[ost->source_index];
More information about the ffmpeg-devel
mailing list