diff options
author | Martin Storsjö <martin@martin.st> | 2012-05-05 00:33:39 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-05-05 20:35:33 +0300 |
commit | b36886174795fb88ddcab22d738cc5b6de2fd5fc (patch) | |
tree | 433ec4b1ceaf6c79401b22ae35d33a6fd7aef7be /libavformat/rtpdec_h264.c | |
parent | 48666c2bd6791e989cdb61f8fecd8dd2ce13bc58 (diff) | |
download | ffmpeg-b36886174795fb88ddcab22d738cc5b6de2fd5fc.tar.gz |
rtpdec_h264: Make start_sequence a static const array
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_h264.c')
-rw-r--r-- | libavformat/rtpdec_h264.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 5fd4efc65e..d9b2700afd 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -63,6 +63,8 @@ struct PayloadContext { #define COUNT_NAL_TYPE(data, nal) do { } while (0) #endif +static const uint8_t start_sequence[] = { 0, 0, 0, 1 }; + static int sdp_parse_fmtp_config_h264(AVStream *stream, PayloadContext *h264_data, char *attr, char *value) @@ -111,7 +113,6 @@ static int sdp_parse_fmtp_config_h264(AVStream *stream, h264_data->level_idc = level_idc; } } else if (!strcmp(attr, "sprop-parameter-sets")) { - uint8_t start_sequence[] = { 0, 0, 0, 1 }; codec->extradata_size = 0; codec->extradata = NULL; @@ -172,7 +173,6 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, uint8_t nal; uint8_t type; int result = 0; - uint8_t start_sequence[] = { 0, 0, 0, 1 }; if (!len) { av_log(ctx, AV_LOG_ERROR, "Empty H264 RTP packet\n"); |