A stray line of code from the switch from mpeg2dec to
libavcodec caused a failure to open the mpeg2 decoder for BDs
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6009
b64f7644-9d1e-0410-96f1-
a4d463321fa5
case BLURAY_STREAM_TYPE_VIDEO_MPEG2:
title->video_codec = WORK_DECAVCODECV;
title->video_codec_param = AV_CODEC_ID_MPEG2VIDEO;
- title->video_codec_param = 0;
break;
case BLURAY_STREAM_TYPE_VIDEO_VC1:
memset( info, 0, sizeof(*info) );
+ if (pv->context == NULL)
+ return 0;
+
info->bitrate = pv->context->bit_rate;
// HandBrake's video pipeline uses yuv420 color. This means all
// dimensions must be even. So we must adjust the dimensions