[FFmpeg-devel] [PATCH] ffmpeg.c: Adding a variable to OutputStream to accommodate GOP change

Clément Bœsch ubitux at gmail.com
Wed Aug 31 19:04:28 CEST 2011


On Wed, Aug 31, 2011 at 03:56:01PM +0000, Chiranjeevi Melam wrote:
> 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];
> 

Write only variable? Could you be a bit more precise about what crash you
are trying to fix?

Also, you're indentation is broken.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110831/7a77eaec/attachment.asc>


More information about the ffmpeg-devel mailing list