[FFmpeg-cvslog] rtpdec_vc2hq: avoid magic number

Thomas Volkert git at videolan.org
Mon Jun 13 18:40:42 CEST 2016


ffmpeg | branch: master | Thomas Volkert <thomas at netzeal.de> | Mon Jun 13 18:40:14 2016 +0200| [1f872332c47f58dab27410c00c72b79ce489405e] | committer: Thomas Volkert

rtpdec_vc2hq: avoid magic number

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

 libavformat/rtpdec_vc2hq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpdec_vc2hq.c b/libavformat/rtpdec_vc2hq.c
index 62da59a..8a3996a 100644
--- a/libavformat/rtpdec_vc2hq.c
+++ b/libavformat/rtpdec_vc2hq.c
@@ -165,7 +165,7 @@ static int vc2hq_handle_frame_fragment(AVFormatContext *ctx, PayloadContext *pl_
     if (res < 0)
         return res;
 
-    fill_parse_info_header(pl_ctx, pkt->data, 0xE8, pl_ctx->frame_size);
+    fill_parse_info_header(pl_ctx, pkt->data, DIRAC_PCODE_PICTURE_HQ, pl_ctx->frame_size);
     AV_WB32(&pkt->data[13], pl_ctx->frame_nr);
 
     pl_ctx->frame_size = 0;



More information about the ffmpeg-cvslog mailing list