On Fri, Mar 07, 2014 at 02:32:40PM +0000, Derek Buitenhuis wrote: > Signed-off-by: Derek Buitenhuis <[email protected]> > --- > libavcodec/fic.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/fic.c b/libavcodec/fic.c > index 9a3bc3e..c0b3206 100644 > --- a/libavcodec/fic.c > +++ b/libavcodec/fic.c > @@ -194,6 +194,8 @@ static int fic_decode_frame(AVCodecContext *avctx, void > *data, > if (msize <= 0) { > av_log(avctx, AV_LOG_ERROR, "Not enough frame data to decode.\n"); > return AVERROR_INVALIDDATA; > + } else if (msize == 1) { > + goto skip; > } > > /* > @@ -245,6 +247,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void > *data, > NULL, nslices, sizeof(ctx->slice_data[0])) < 0) > return ret; > > +skip: > *got_frame = 1; > if ((ret = av_frame_ref(data, ctx->frame)) < 0) > return ret; > --
There's a byte in header (at offset 17) that tells you if it's a skip frame. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
