Hi, Thank you for the feedbacks.
On 2019/12/12 21:32, "James Almer" <jamr...@gmail.com> wrote: On 12/12/2019 9:10 AM, Andreas Rheinhardt wrote: >> Not all audio codecs are intra-only. TrueHD is a notable exception: It uses >> sync frames and only they should be keyframes. > > Correct. But before we can make it effective the truehd parser needs to > mark keyframes as required. I'll send a patch for that in a minute. OK. I will remove INTRA_ONLY flag from TrueHD. >> Although you aim to not change behaviour, it does change behaviour for >> subtitles and also for the other pseudo-codecs (like dvd-nav packets, >> wrapped AVFrames etc.). If I am not mistaken, then at least HDMV PGS >> subtitles (used on Blurays) are not intra-only. > >The intra only flag is for video and audio only, as stated in the doxy. >> >> You could simplify this to return !!(d->props & AV_CODEC_PROP_INTRA_ONLY); >> you could even omit the !!. > > Since he needs to prevent it from triggering for subtitles, the check > should be if ((d->type == AVMEDIA_TYPE_VIDEO || d->type == > AVMEDIA_TYPE_AUDIO) && !(d->props & AV_CODEC_PROP_INTRA_ONLY)) or similar. This is simply my mistake. I will fix this. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".