diff --git a/packager/app/test/packager_test.py b/packager/app/test/packager_test.py index 67d70d6131..75a91ed3af 100755 --- a/packager/app/test/packager_test.py +++ b/packager/app/test/packager_test.py @@ -92,11 +92,11 @@ def _UpdateMpdTimes(mpd_filepath): def GetExtension(stream_descriptor, output_format): + if output_format: + return output_format # TODO(rkuroiwa): Support ttml. if stream_descriptor == 'text': return 'vtt' - if output_format: - return output_format # Default to mp4. return 'mp4'