mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
raw picture support in mux
Originally committed as revision 1035 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
487a54d71d
commit
7002684e69
8
ffmpeg.c
8
ffmpeg.c
@ -558,10 +558,18 @@ static void do_video_out(AVFormatContext *s,
|
||||
if (ost->logfile && enc->stats_out) {
|
||||
fprintf(ost->logfile, "%s", enc->stats_out);
|
||||
}
|
||||
} else {
|
||||
if (s->oformat->flags & AVFMT_RAWPICTURE) {
|
||||
/* raw pictures are written as AVPicture structure to
|
||||
avoid any copies. We support temorarily the older
|
||||
method. */
|
||||
s->oformat->write_packet(s, ost->index,
|
||||
(UINT8 *)picture, sizeof(AVPicture), 0);
|
||||
} else {
|
||||
write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height);
|
||||
}
|
||||
}
|
||||
}
|
||||
the_end:
|
||||
av_free(buf);
|
||||
av_free(buf1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user