[FFmpeg-devel] [PATCH] avformat/mov: aax: pass proper AVClass to av_log()
michael at niedermayer.cc
Sun Aug 28 22:01:45 EEST 2016
On Sun, Aug 28, 2016 at 12:24:55PM -0400, Thomas Hebb wrote:
> av_log() expects its first parameter to be a pointer to a struct whose
> first element is a pointer to an AVClass. In what I can only imagine is
> a typo, one call to av_log() in the AAX decryption code instead passes
> a pointer to an AVSHA struct, which doesn't even contain a pointer as
> its first element, much less a pointer to an AVClass. Change the call to
> pass the current MOVContext, as surrounding calls do.
> The incorrect AVClass was causing mpv to emit the warning "av_log
> callback called with bad parameters" when playing an .aax file.
> Signed-off-by: Thomas Hebb <tommyhebb at gmail.com>
> libavformat/mov.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel