Signed-off-by: Martin Storsjö <martin@martin.st>
| ... | ... |
@@ -63,6 +63,8 @@ struct PayloadContext {
|
| 63 | 63 |
#define COUNT_NAL_TYPE(data, nal) do { } while (0)
|
| 64 | 64 |
#endif |
| 65 | 65 |
|
| 66 |
+static const uint8_t start_sequence[] = { 0, 0, 0, 1 };
|
|
| 67 |
+ |
|
| 66 | 68 |
static int sdp_parse_fmtp_config_h264(AVStream *stream, |
| 67 | 69 |
PayloadContext *h264_data, |
| 68 | 70 |
char *attr, char *value) |
| ... | ... |
@@ -111,7 +113,6 @@ static int sdp_parse_fmtp_config_h264(AVStream *stream, |
| 111 | 111 |
h264_data->level_idc = level_idc; |
| 112 | 112 |
} |
| 113 | 113 |
} else if (!strcmp(attr, "sprop-parameter-sets")) {
|
| 114 |
- uint8_t start_sequence[] = { 0, 0, 0, 1 };
|
|
| 115 | 114 |
codec->extradata_size = 0; |
| 116 | 115 |
codec->extradata = NULL; |
| 117 | 116 |
|
| ... | ... |
@@ -172,7 +173,6 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, |
| 172 | 172 |
uint8_t nal; |
| 173 | 173 |
uint8_t type; |
| 174 | 174 |
int result = 0; |
| 175 |
- uint8_t start_sequence[] = { 0, 0, 0, 1 };
|
|
| 176 | 175 |
|
| 177 | 176 |
if (!len) {
|
| 178 | 177 |
av_log(ctx, AV_LOG_ERROR, "Empty H264 RTP packet\n"); |