avconv: move streamcopy-only code out of decoding loop.