1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix duplicate & droped frame in Californication.S02E01.HDTV.XviD-NoTV.avi

This commit is contained in:
Michael Niedermayer 2011-03-03 03:37:44 +01:00
parent d667be2cea
commit 1b4580d1a2

View File

@ -383,6 +383,16 @@ uint64_t time= rdtsc();
retry: retry:
if(s->divx_packed && s->xvid_build>=0 && s->bitstream_buffer_size){
int i;
for(i=0; i<buf_size-3; i++){
if(buf[i]==0 && buf[i+1]==0 && buf[i+2]==1){
if(buf[i+3]==0xB0)
s->bitstream_buffer_size=0;
break;
}
}
}
if(s->bitstream_buffer_size && (s->divx_packed || buf_size<20)){ //divx 5.01+/xvid frame reorder if(s->bitstream_buffer_size && (s->divx_packed || buf_size<20)){ //divx 5.01+/xvid frame reorder
init_get_bits(&s->gb, s->bitstream_buffer, s->bitstream_buffer_size*8); init_get_bits(&s->gb, s->bitstream_buffer, s->bitstream_buffer_size*8);