[FFmpeg-devel] [PATCH] Mobotix .mxg demixer and MxPEG decoder basic implementation

Reimar Döffinger Reimar.Doeffinger
Thu Aug 12 18:07:02 CEST 2010


On Wed, Aug 11, 2010 at 09:22:48PM +0400, Anatoly Nenashev wrote:
> >> @@ -1026,6 +1044,12 @@
> >>       if(8*len + get_bits_count(&s->gb)>  s->gb.size_in_bits)
> >>           return -1;
> >>
> >> +    /* skip MXPEG audio data*/
> >> +    if ((s->avctx->codec_id == CODEC_ID_MXPEG)&&  (s->start_code == APP13)) {
> >> +        skip_bits(&s->gb, (len-2)<<  3);
> >> +        return 0;
> >> +    }
> >>      
> > how does the audio data reach the video decoder?
> > this just looks like the demuxer is wrongly implemented
> >
> > [...]
> >
> >    
> 
> On the other hand APP13 is valid marker for JPEG format. So, there no 
> need to extract this data from video stream.
> Also rejecting audio data from video stream will reduce the performance.

At worst, by implementing a custom function that frees the packets
there should not be any reduction in performance.
Even without it, it's at most the cost of memcpying the whole stream.



More information about the ffmpeg-devel mailing list