From 7af7f31fbb51ffb9aa52dcc348ec60bd04d2e72e Mon Sep 17 00:00:00 2001 From: Hyunseok Lee Date: Thu, 6 Sep 2012 20:38:00 +0900 Subject: [PATCH] H.263+ encoder plugin couldn't encode on custom resolution --- gst-libs/ext/ffmpeg/libavcodec/ituh263enc.c | 4 ++-- packaging/gst-ffmpeg.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/ext/ffmpeg/libavcodec/ituh263enc.c b/gst-libs/ext/ffmpeg/libavcodec/ituh263enc.c index f736d7c..d54b302 100644 --- a/gst-libs/ext/ffmpeg/libavcodec/ituh263enc.c +++ b/gst-libs/ext/ffmpeg/libavcodec/ituh263enc.c @@ -162,7 +162,7 @@ void h263_encode_picture_header(MpegEncContext * s, int picture_number) put_bits(&s->pb, 3, 7); put_bits(&s->pb,3,ufep); /* Update Full Extended PTYPE */ - if (format == 7) + if (format == 8) put_bits(&s->pb,3,6); /* Custom Source Format */ else put_bits(&s->pb, 3, format); @@ -192,7 +192,7 @@ void h263_encode_picture_header(MpegEncContext * s, int picture_number) /* This should be here if PLUSPTYPE */ put_bits(&s->pb, 1, 0); /* Continuous Presence Multipoint mode: off */ - if (format == 7) { + if (format == 8) { /* Custom Picture Format (CPFMT) */ s->aspect_ratio_info= ff_h263_aspect_to_info(s->avctx->sample_aspect_ratio); diff --git a/packaging/gst-ffmpeg.spec b/packaging/gst-ffmpeg.spec index 96fd688..b36cae3 100644 --- a/packaging/gst-ffmpeg.spec +++ b/packaging/gst-ffmpeg.spec @@ -2,7 +2,7 @@ Name: gst-ffmpeg Summary: FFmpeg plugin for GStreamer Version: 0.10.11 -Release: 11 +Release: 12 Group: TO_BE/FILLED_IN License: LGPLv2+ Source0: %{name}-%{version}.tar.gz -- 2.7.4