[FFmpeg-cvslog] avcodec/ituh263dec: detect and warn about RTP

Michael Niedermayer git at videolan.org
Sat Aug 24 23:13:02 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 24 23:06:59 2013 +0200| [f55a7ba0376d45599f6ff46ba49ee80d43d0d7d9] | committer: Michael Niedermayer

avcodec/ituh263dec: detect and warn about RTP

Fixes Ticket925
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f55a7ba0376d45599f6ff46ba49ee80d43d0d7d9
---

 libavcodec/ituh263dec.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index cd6ed4e..08aeb30 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) {



More information about the ffmpeg-cvslog mailing list