Mercurial > libavcodec.hg
comparison aac_ac3_parser.c @ 7903:ad95dd08b31a libavcodec
Fix all the recent problems Justin had run into with the AC3 parser,
including issue 459.
author | michael |
---|---|
date | Mon, 22 Sep 2008 03:00:26 +0000 |
parents | e5f7a43f63ae |
children | 75d40b4b28ed |
comparison
equal
deleted
inserted
replaced
7902:8b8be8f2b647 | 7903:ad95dd08b31a |
---|---|
49 if(len<=0){ | 49 if(len<=0){ |
50 i=END_NOT_FOUND; | 50 i=END_NOT_FOUND; |
51 }else{ | 51 }else{ |
52 i-= s->header_size -1; | 52 i-= s->header_size -1; |
53 s->remaining_size = len; | 53 s->remaining_size = len; |
54 if(!new_frame_start){ | 54 if(!new_frame_start || pc->index+i<=0){ |
55 s->remaining_size += i; | 55 s->remaining_size += i; |
56 goto get_next; | 56 goto get_next; |
57 } | 57 } |
58 } | 58 } |
59 } | 59 } |