]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/yuv4mpeg.c
mp3dec: export replaygain tags from ID3v2
[ffmpeg] / libavformat / yuv4mpeg.c
index c38d641e06fde7a13bba7cf239b9fdcadb6c3ed2..f793a0e17093a7a4750cc66ecc25f9cee75626b3 100644 (file)
@@ -147,7 +147,6 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt)
             ptr2 += picture->linesize[2];
         }
     }
-    avio_flush(pb);
     return 0;
 }
 
@@ -362,6 +361,7 @@ static int yuv4_read_header(AVFormatContext *s)
     st->codec->height = height;
     av_reduce(&raten, &rated, raten, rated, (1UL << 31) - 1);
     avpriv_set_pts_info(st, 64, rated, raten);
+    st->avg_frame_rate                = av_inv_q(st->time_base);
     st->codec->pix_fmt                = pix_fmt;
     st->codec->codec_type             = AVMEDIA_TYPE_VIDEO;
     st->codec->codec_id               = AV_CODEC_ID_RAWVIDEO;