提交 7002684e 编写于 作者: F Fabrice Bellard

raw picture support in mux

Originally committed as revision 1035 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 487a54d7
......@@ -559,7 +559,15 @@ static void do_video_out(AVFormatContext *s,
fprintf(ost->logfile, "%s", enc->stats_out);
}
} else {
write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height);
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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册