diff options
author | Martin Storsjö <martin@martin.st> | 2010-12-06 12:44:09 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-12-06 12:44:09 +0000 |
commit | 86042de8a50c8278daf739faacc64d75a0a50e1a (patch) | |
tree | b37be8a02a06d10394d23c595bff2d679c042607 /libavformat/rtpdec_h264.c | |
parent | 4838cdab21e1f7d0f43d2a1649646ff068b4bb1e (diff) | |
download | ffmpeg-86042de8a50c8278daf739faacc64d75a0a50e1a.tar.gz |
rtpdec_h264: Pass NAL type 0 through
According to the spec, this type shouldn't ever be used. Nevertheless,
passing it through enables decoding streams which otherwise aren't
decodeable.
Originally committed as revision 25897 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpdec_h264.c')
-rw-r--r-- | libavformat/rtpdec_h264.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 29705a69f8..75db14c1f8 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -187,10 +187,7 @@ static int h264_handle_packet(AVFormatContext *ctx, if (type >= 1 && type <= 23) type = 1; // simplify the case. (these are all the nal types used internally by the h264 codec) switch (type) { - case 0: // undefined; - result= -1; - break; - + case 0: // undefined, but pass them through case 1: av_new_packet(pkt, len+sizeof(start_sequence)); memcpy(pkt->data, start_sequence, sizeof(start_sequence)); |