* providing MPEG codecs with a generic fields in AVFrame to use.

* fixing YUV4MPEG format.

    * fixing a bug in DV codec where coded_frame was not set.

Originally committed as revision 2396 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Roman Shaposhnik
2003-10-18 03:19:44 +00:00
parent a573cc27f5
commit 2744ca9ac9
4 changed files with 83 additions and 73 deletions

View File

@@ -608,8 +608,11 @@ static void do_video_out(AVFormatContext *s,
/* raw pictures are written as AVPicture structure to
avoid any copies. We support temorarily the older
method. */
AVFrame* old_frame = enc->coded_frame;
enc->coded_frame = dec->coded_frame;
av_write_frame(s, ost->index,
(uint8_t *)final_picture, sizeof(AVPicture));
enc->coded_frame = old_frame;
} else {
AVFrame big_picture;