mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
ext/ffmpeg/gstffmpegdec.c: Disable parsing on h264 for now, seems to break avc decoding.
Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_open), (gst_ffmpegdec_handle_event), (gst_ffmpegdec_register): Disable parsing on h264 for now, seems to break avc decoding.
This commit is contained in:
parent
722d9491dd
commit
9e7000b54a
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-06-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_open),
|
||||
(gst_ffmpegdec_handle_event), (gst_ffmpegdec_register):
|
||||
Disable parsing on h264 for now, seems to break avc decoding.
|
||||
|
||||
2005-06-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -403,7 +403,8 @@ gst_ffmpegdec_open (GstFFMpegDec *ffmpegdec)
|
|||
* of $(see mpeg4)... */
|
||||
if (oclass->in_plugin->id != CODEC_ID_MPEG4 &&
|
||||
oclass->in_plugin->id != CODEC_ID_MJPEG &&
|
||||
oclass->in_plugin->id != CODEC_ID_MP3) {
|
||||
oclass->in_plugin->id != CODEC_ID_MP3 &&
|
||||
oclass->in_plugin->id != CODEC_ID_H264) {
|
||||
ffmpegdec->pctx = av_parser_init (oclass->in_plugin->id);
|
||||
}
|
||||
|
||||
|
@ -875,7 +876,8 @@ gst_ffmpegdec_handle_event (GstFFMpegDec * ffmpegdec, GstEvent * event)
|
|||
avcodec_flush_buffers (ffmpegdec->context);
|
||||
|
||||
if (ffmpegdec->context->codec_id == CODEC_ID_MPEG2VIDEO ||
|
||||
ffmpegdec->context->codec_id == CODEC_ID_MPEG4) {
|
||||
ffmpegdec->context->codec_id == CODEC_ID_MPEG4 ||
|
||||
ffmpegdec->context->codec_id == CODEC_ID_H264) {
|
||||
ffmpegdec->waiting_for_key = TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -1138,6 +1140,7 @@ gst_ffmpegdec_register (GstPlugin * plugin)
|
|||
switch (in_plugin->id) {
|
||||
case CODEC_ID_MPEG4:
|
||||
case CODEC_ID_MSMPEG4V3:
|
||||
case CODEC_ID_H264:
|
||||
rank = GST_RANK_PRIMARY;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue