Browse code

Copy width/height for subtitle streams (needed for scodec copy of mov/mp4 timed text)

Originally committed as revision 16662 to svn://svn.ffmpeg.org/ffmpeg/trunk

David Conrad authored on 2009/01/18 08:54:27
Showing 1 changed files
... ...
@@ -1779,6 +1779,8 @@ static int av_encode(AVFormatContext **output_files,
1779 1779
                 codec->has_b_frames = icodec->has_b_frames;
1780 1780
                 break;
1781 1781
             case CODEC_TYPE_SUBTITLE:
1782
+                codec->width = icodec->width;
1783
+                codec->height = icodec->height;
1782 1784
                 break;
1783 1785
             default:
1784 1786
                 abort();