Bugfix in the LibAvContextHandle when a file with multiple streams is

selected
This commit is contained in:
jfmcarreira committed 2014-02-02 16:59:24 +00:00
1 parent b93038904b
commit 1b4efd76b0
2 files changed
+7 -6

No files matched your search

+3 -4
View File
@@ -135,10 +135,9 @@ Bool LibAvContextHandle::initAvFormat( QString filename, UInt& width, UInt& heig
video_dst_bufsize = ret;
}
AVCodecContext *in_codec = fmt_ctx->streams[0]->codec;
width = in_codec->width;
height = in_codec->height;
switch( in_codec->pix_fmt )
width = video_dec_ctx->width;
height = video_dec_ctx->height;
switch( video_dec_ctx->pix_fmt )
{
case AV_PIX_FMT_YUV420P:
pixel_format = PlaYUVerFrame::YUV420;