aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-24 23:06:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-24 23:06:59 +0200
commitf55a7ba0376d45599f6ff46ba49ee80d43d0d7d9 (patch)
tree602e0ccc6c6dc42ebe0d18c37ede53c55f4eb7cb
parent5c6a58746b415462f13c409aacb9041c98ab9ea0 (diff)
downloadffmpeg-f55a7ba0376d45599f6ff46ba49ee80d43d0d7d9.tar.gz
avcodec/ituh263dec: detect and warn about RTP
Fixes Ticket925 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/ituh263dec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index cd6ed4e620..08aeb30aeb 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -874,6 +874,10 @@ int ff_h263_decode_picture_header(MpegEncContext *s)
align_get_bits(&s->gb);
+ if (show_bits(&s->gb, 2) == 2 && s->avctx->frame_number == 0) {
+ av_log(s->avctx, AV_LOG_WARNING, "Header looks like RTP instead of H.263\n");
+ }
+
startcode= get_bits(&s->gb, 22-8);
for(i= get_bits_left(&s->gb); i>24; i-=8) {