comparison matroskadec.c @ 6382:a4e249f79b66 libavformat

matroskadec: minor simplification patch from reimar
author aurel
date Tue, 17 Aug 2010 14:25:14 +0000
parents 8678cbf178d7
children 9ba950e0e021
comparison
equal deleted inserted replaced
6381:8678cbf178d7 6382:a4e249f79b66
1732 } else { 1732 } else {
1733 MatroskaTrackEncoding *encodings = track->encodings.elem; 1733 MatroskaTrackEncoding *encodings = track->encodings.elem;
1734 int offset = 0, pkt_size = lace_size[n]; 1734 int offset = 0, pkt_size = lace_size[n];
1735 uint8_t *pkt_data = data; 1735 uint8_t *pkt_data = data;
1736 1736
1737 if (lace_size[n] > size) { 1737 if (pkt_size > size) {
1738 av_log(matroska->ctx, AV_LOG_ERROR, "Invalid packet size\n"); 1738 av_log(matroska->ctx, AV_LOG_ERROR, "Invalid packet size\n");
1739 break; 1739 break;
1740 } 1740 }
1741 1741
1742 if (encodings && encodings->scope & 1) { 1742 if (encodings && encodings->scope & 1) {