Mercurial > libavcodec.hg
changeset 982:a1866d06df1e libavcodec
workaround dropable p frame after first frame bug
author | michaelni |
---|---|
date | Thu, 09 Jan 2003 01:43:31 +0000 |
parents | 8bec850dc9c7 |
children | ca2a303ea039 |
files | svq1.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/svq1.c Wed Jan 08 18:47:49 2003 +0000 +++ b/svq1.c Thu Jan 09 01:43:31 2003 +0000 @@ -1093,6 +1093,10 @@ return result; } + //FIXME this avoids some confusion for "B frames" without 2 references + //this should be removed after libavcodec can handle more flaxible picture types & ordering + if(s->pict_type==B_TYPE && s->last_picture.data[0]==NULL) return buf_size; + if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size; if(MPV_frame_start(s, avctx) < 0)