From c5493132981f650d13c03181d53da5e3fd205bcd Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 2 Apr 2011 19:58:34 +0000 Subject: Fix garbled previews from BD h.264 sources Forome reason, frames that are tagged as recovery points in many BD h.264 streams do not result in complete frames when decoded. Pushing 2 extra frames through the decoder seems to always fix this. This patch extends something I was already doing when generating previews from a BD structure. This just applies the same logic to ffmpeg streams that have h.264 video. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3895 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 2 +- gtk/src/hb-backend.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index fc79b99cf..0d8699c0d 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1343,7 +1343,7 @@ show_title_info(signal_user_data_t *ud, ghb_title_info_t *tinfo) gchar *text; ghb_settings_set_string(ud->settings, "source", tinfo->path); - if (tinfo->type == HB_STREAM_TYPE) + if (tinfo->type == HB_STREAM_TYPE || tinfo->type == HB_FF_STREAM_TYPE) { GtkWidget *widget = GHB_WIDGET (ud->builder, "source_title"); if (tinfo->name != NULL && tinfo->name[0] != 0) diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index e0ee19c3b..f6061c564 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -1888,7 +1888,7 @@ title_opts_set(GtkBuilder *builder, const gchar *name) for (ii = 0; ii < count; ii++) { title = (hb_title_t*)hb_list_item(list, ii); - if (title->type == HB_STREAM_TYPE) + if (title->type == HB_STREAM_TYPE || title->type == HB_FF_STREAM_TYPE) { if (title->duration != 0) { -- cgit v1.2.3