fix ticket #11531 the rtsp aac did not marked keyframe which cannot easy copy to output. because f265f9c9d04863180503707bfad285f48e6bf080 commit change the AAC props to match xHE-AAC. in some formats like MOV, need_parsing is set, so AAC can be still parsed be keyframe but rtsp did not, so this patch add it
Unified · Split
| @@ -363,6 +363,7 @@ const RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler = { · 362 unmodified lines | ||
| 363 | 363 | .enc_name = "mpeg4-generic", |
| 364 | 364 | .codec_type = AVMEDIA_TYPE_AUDIO, |
| 365 | 365 | .codec_id = AV_CODEC_ID_AAC, |
| 366 | + .need_parsing = AVSTREAM_PARSE_HEADERS, | |
| 366 | 367 | .priv_data_size = sizeof(PayloadContext), |
| 367 | 368 | .parse_sdp_a_line = parse_sdp_line, |
| 368 | 369 | .close = close_context, |