Commit f1e12cbf authored by bellard's avatar bellard

raw picture support in mux


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1035 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f039d1d0
...@@ -558,10 +558,18 @@ static void do_video_out(AVFormatContext *s, ...@@ -558,10 +558,18 @@ static void do_video_out(AVFormatContext *s,
if (ost->logfile && enc->stats_out) { if (ost->logfile && enc->stats_out) {
fprintf(ost->logfile, "%s", 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 { } else {
write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height); write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height);
} }
} }
}
the_end: the_end:
av_free(buf); av_free(buf);
av_free(buf1); av_free(buf1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment