Re: [FFmpeg-devel] [PATCH 2/2] avcodec/avcodec, avpacket: Return blank packet on av_packet_ref() failure

2020-03-27 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2020-03-27 03:25:14) >> Up until now, it was completely unspecified what the content of the >> destination packet dst was on error. Depending upon where the error >> happened calling av_packet_unref() on dst might be dangerous. >> >> This commit changes

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/avcodec, avpacket: Return blank packet on av_packet_ref() failure

2020-03-27 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2020-03-27 03:25:14) > Up until now, it was completely unspecified what the content of the > destination packet dst was on error. Depending upon where the error > happened calling av_packet_unref() on dst might be dangerous. > > This commit changes this by making sure

[FFmpeg-devel] [PATCH 2/2] avcodec/avcodec, avpacket: Return blank packet on av_packet_ref() failure

2020-03-26 Thread Andreas Rheinhardt
Up until now, it was completely unspecified what the content of the destination packet dst was on error. Depending upon where the error happened calling av_packet_unref() on dst might be dangerous. This commit changes this by making sure that dst is blank on error, so unreferencing it again is