avconv: do not overwrite the stream codec context for streamcopy
authorAnton Khirnov <anton@khirnov.net>
Thu, 2 Apr 2015 04:09:05 +0000 (06:09 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 5 Apr 2015 07:26:54 +0000 (09:26 +0200)
commit420aa06a2487469259a04f9be66fd15535372796
treef9cd2bdbe2f13ce01e135c78e4c01481340d5cb9
parentb7c8a1fbbd0b6ac0b096ef0402dee440ff27ecb7
avconv: do not overwrite the stream codec context for streamcopy

Since we are not doing encoding, there is no point in ever touching the
separate encoding context. Always use the stream codec context.

Fixes writing attachments.

CC:libav-devel@libav.org
(cherry picked from commit 3892bdab9b652eb003ab95e167f1765e0b0ea035)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Conflicts:
avconv.c
avconv.c