qpeg: avoid pointless invalid memcpy()
authorwm4 <nfxjfg@googlemail.com>
Tue, 13 Jan 2015 13:47:47 +0000 (14:47 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Jan 2015 16:27:45 +0000 (17:27 +0100)
commit921706691a87c3ea5f5b92afd9b423e5f8c6e9d9
treee02ce2c68d119c6400c9ed15916089a67e5767bd
parent295b79b5d8c0cf0a9691f8d6b512aa1e289d528d
qpeg: avoid pointless invalid memcpy()

If refdata was NULL, the memcpy() ended up copying the same memory
block onto itself, which is not only pointless, but also undefined
behavior.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/qpeg.c