summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/bd.c1
-rw-r--r--libhb/decavcodec.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/libhb/bd.c b/libhb/bd.c
index 3f2a0df1c..37c9c5c7e 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -339,7 +339,6 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
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:
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index b94168724..b4daf3cdc 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -1953,6 +1953,9 @@ static int decavcodecvInfo( hb_work_object_t *w, hb_work_info_t *info )
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