1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-02-17 19:50:35 +01:00

Set AVFMT_FLAG_KEEP_SIDE_DATA when demuxing m4a, if the demuxer migth need it

This commit is contained in:
Martin Storsjo 2018-07-05 00:02:56 +03:00
parent f4da0776b4
commit 8484697c4b

View File

@ -49,6 +49,9 @@ int main(int argc, char *argv[]) {
av_register_all();
avformat_network_init();
ret = avformat_open_input(&in, infile, NULL, NULL);
#ifdef AVFMT_FLAG_KEEP_SIDE_DATA
in->flags |= AVFMT_FLAG_KEEP_SIDE_DATA;
#endif
if (ret < 0) {
char buf[100];
av_strerror(ret, buf, sizeof(buf));