Copy width/height for subtitle streams (needed for scodec copy of mov/mp4
[ffmpeg.git] / ffmpeg.c
index 51a5f95a586742e8bdd0804af08331cf42e7a9d6..cdb5e20ca75227e8b8464ca288da4a234b844dab 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1779,6 +1779,8 @@ static int av_encode(AVFormatContext **output_files,
                 codec->has_b_frames = icodec->has_b_frames;
                 break;
             case CODEC_TYPE_SUBTITLE:
+                codec->width = icodec->width;
+                codec->height = icodec->height;
                 break;
             default:
                 abort();