aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtp_h264.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2007-08-10 13:34:56 +0000
committerLuca Barbato <lu_zero@gentoo.org>2007-08-10 13:34:56 +0000
commit272872e44b29a3b0e362ed67824f0820efe19d1d (patch)
tree0d9e508af1669207b66202a505dcbfe010c496fa /libavformat/rtp_h264.c
parent717c4eb0752fa76365f8dc05a9db08f0ce334e2f (diff)
downloadandroid_external_ffmpeg-272872e44b29a3b0e362ed67824f0820efe19d1d.tar.gz
android_external_ffmpeg-272872e44b29a3b0e362ed67824f0820efe19d1d.tar.bz2
android_external_ffmpeg-272872e44b29a3b0e362ed67824f0820efe19d1d.zip
fix the packetization mode parsing
Originally committed as revision 10055 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp_h264.c')
-rw-r--r--libavformat/rtp_h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c
index 5aeb6f183f..9f2c2d5be3 100644
--- a/libavformat/rtp_h264.c
+++ b/libavformat/rtp_h264.c
@@ -78,8 +78,8 @@ static void sdp_parse_fmtp_config_h264(AVStream * stream,
assert(h264_data != NULL);
if (!strcmp(attr, "packetization-mode")) {
- av_log(NULL, AV_LOG_DEBUG, "H.264/RTP Packetization Mode: %d\n", atoi(attr));
- h264_data->packetization_mode = atoi(attr);
+ av_log(NULL, AV_LOG_DEBUG, "H.264/RTP Packetization Mode: %d\n", atoi(value));
+ h264_data->packetization_mode = atoi(value);
/*
Packetization Mode:
0 or not present: Single NAL mode (Only nals from 1-23 are allowed)