On 21/06/2019 15:26, James Almer wrote: > Remove the three lines below as well before pushing. They are > superfluous as av_packet_unref() does the same internally.
OK. The documentation for av_packet_unref says it sets the 'remaining' fields to default values, but av_init_packet says it sets the 'optional' fields to default values. Not clear if they mean the same thing. Looking at the source, it's clear, but I prefer not to do that, since it encourages relying on undocumented behavior. - Derek _______________________________________________ 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".