avformat/utils: don't overwrite the return value of read_packet()
authorJames Almer <jamrial@gmail.com>
Mon, 26 Feb 2018 03:18:53 +0000 (00:18 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 27 Feb 2018 01:17:21 +0000 (22:17 -0300)
commitf235359b2b1175585df757e6b60fabac29b8aa22
tree0e35af0b8bd16422333442c3d8939d677efff64e
parentf4709f1b7b9008380a74dd0415323fd3e0085c93
avformat/utils: don't overwrite the return value of read_packet()

This only affected demuxers that didn't return reference counted packets.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/utils.c