Commit 212f129f authored by Michael Niedermayer's avatar Michael Niedermayer

avidec: discard 0 packets even for sample_size==0 NI

Fixes Ticket1332
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3cb83b22
......@@ -1292,7 +1292,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
// switch to non-interleaved to get correct timestamps
if(last_pos == pos)
avi->non_interleaved= 1;
if((last_pos != pos || !last_len) && (len || !ast->sample_size)) {
if((last_pos != pos || !last_len) && len) {
av_add_index_entry(st, pos, ast->cum_len, len, 0, (flags&AVIIF_INDEX) ? AVINDEX_KEYFRAME : 0);
}
ast->cum_len += get_duration(ast, len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment