ext/ffmpeg/gstffmpegdec.c: Draw edges for h264. Fixes #364139.

Original commit message from CVS:
Patch by: Yves Lefebvre <ivanohe at abacom dot com>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_setcaps):
Draw edges for h264. Fixes #364139.
Set the error resilience flag just in case...
This commit is contained in:
Yves Lefebvre 2007-04-12 10:56:42 +00:00 committed by Wim Taymans
parent c9aec911c2
commit eff0fefa3e
3 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2007-04-12 Wim Taymans <wim@fluendo.com>
Patch by: Yves Lefebvre <ivanohe at abacom dot com>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_setcaps):
Draw edges for h264. Fixes #364139.
Set the error resilience flag just in case...
2007-03-17 Johan Dahlin <jdahlin@async.com.br>
* ext/ffmpeg/gstffmpegcodecmap.c (gst_ffmpeg_get_codecid_longname):

2
common

@ -1 +1 @@
Subproject commit dec151d15512e4cca2dcdd36d9c6c4a2185760ec
Subproject commit 9097e252e477e18182f08a032d8860bdee9a0416

View file

@ -605,12 +605,16 @@ gst_ffmpegdec_setcaps (GstPad * pad, GstCaps * caps)
GST_DEBUG_OBJECT (ffmpegdec, "Using framerate from codec");
}
/* do *not* draw edges */
ffmpegdec->context->flags |= CODEC_FLAG_EMU_EDGE;
if(oclass->in_plugin->id != CODEC_ID_H264) {
/* do *not* draw edges */
ffmpegdec->context->flags |= CODEC_FLAG_EMU_EDGE;
}
/* workaround encoder bugs */
ffmpegdec->context->workaround_bugs |= FF_BUG_AUTODETECT;
ffmpegdec->context->error_resilience = 1;
/* for slow cpus */
ffmpegdec->context->lowres = ffmpegdec->lowres;
ffmpegdec->context->hurry_up = ffmpegdec->hurry_up;