]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mtv.c
dv: fix avpriv_dv_codec_profile with lowres > 0
[ffmpeg] / libavformat / mtv.c
index b31e4cb88ff91c3ca2ed03aedf2166954fec91f1..4252309a6eeb01ebc2556ed142d46b2a82a43d5b 100644 (file)
@@ -196,7 +196,7 @@ static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt)
          * just swap bytes as they come
          */
 
-        for(i=0;i<mtv->img_segment_size/2;i++)
+        for(i=0;i<ret/2;i++)
             *((uint16_t *)pkt->data+i) = av_bswap16(*((uint16_t *)pkt->data+i));
 #endif
         pkt->stream_index = 0;