ffserver: use avcodec_copy_context to copy context
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sat, 22 Nov 2014 01:33:29 +0000 (02:33 +0100)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Tue, 2 Dec 2014 20:58:34 +0000 (21:58 +0100)
commit8b0226f2a6d71d47c7578681e2580cb6b337adb9
treea23b399ce9ec2573640b886c7f1817a7200a3838
parentd0b0fe6691fc67a95f985cad10d7e66c9bc23587
ffserver: use avcodec_copy_context to copy context

Copying context using dedicated function is safer that raw memcpy
which creates shallow copy.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
ffserver.c