]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ffmdec.c
avformat/wavdec: Do not discard sample_count due to rounding
[ffmpeg] / libavformat / ffmdec.c
index 9b50c9f5a6f383fc14dc984c7f5c15cc78d4f5f5..7af1bd3cf4d415d16e8e3208242e2284862c3f53 100644 (file)
@@ -326,7 +326,7 @@ static int ffm2_read_header(AVFormatContext *s)
             codec->flags = avio_rb32(pb);
             codec->flags2 = avio_rb32(pb);
             codec->debug = avio_rb32(pb);
-            if (codec->flags & CODEC_FLAG_GLOBAL_HEADER) {
+            if (codec->flags & AV_CODEC_FLAG_GLOBAL_HEADER) {
                 if (ff_get_extradata(codec, pb, avio_rb32(pb)) < 0)
                     return AVERROR(ENOMEM);
             }
@@ -573,7 +573,7 @@ static int ffm_read_header(AVFormatContext *s)
         default:
             goto fail;
         }
-        if (codec->flags & CODEC_FLAG_GLOBAL_HEADER) {
+        if (codec->flags & AV_CODEC_FLAG_GLOBAL_HEADER) {
             if (ff_get_extradata(codec, pb, avio_rb32(pb)) < 0)
                 return AVERROR(ENOMEM);
         }