diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
old mode 100644
new mode 100755
index 123894f..70ee28f
|
a
|
b
|
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
|
| 275 | 275 | return res == 1 ? -1 : res; |
| 276 | 276 | } |
| 277 | 277 | |
| | 278 | static av_cold int asfrtp_init(AVFormatContext *ctx, int st_index, PayloadContext *data) |
| | 279 | { |
| | 280 | if (st_index < 0) |
| | 281 | return 0; |
| | 282 | ctx->streams[st_index]->need_parsing = AVSTREAM_PARSE_FULL; |
| | 283 | return 0; |
| | 284 | } |
| | 285 | |
| 278 | 286 | static PayloadContext *asfrtp_new_context(void) |
| 279 | 287 | { |
| 280 | 288 | return av_mallocz(sizeof(PayloadContext)); |
| … |
… |
RTPDynamicProtocolHandler ff_ms_rtp_ ## n ## _handler = { \
|
| 299 | 307 | .codec_id = AV_CODEC_ID_NONE, \ |
| 300 | 308 | .parse_sdp_a_line = asfrtp_parse_sdp_line, \ |
| 301 | 309 | .alloc = asfrtp_new_context, \ |
| | 310 | .init = asfrtp_init, \ |
| 302 | 311 | .free = asfrtp_free_context, \ |
| 303 | 312 | .parse_packet = asfrtp_parse_packet, \ |
| 304 | 313 | } |