]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/soxdec.c
Mention AVFMT_SEEK_TO_PTS in AVInputFormat flags docs
[ffmpeg] / libavformat / soxdec.c
index 9ca767317598aa8405123ab8781293a8b904632c..46b07b73c8dfee4cea2e53139050a992657a25e6 100644 (file)
@@ -138,8 +138,8 @@ static int sox_read_packet(AVFormatContext *s,
     ret = av_get_packet(s->pb, pkt, size);
     if (ret < 0)
         return AVERROR(EIO);
+    pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
     pkt->stream_index = 0;
-    pkt->size = ret;
 
     return 0;
 }