Skip to content

Commit

Permalink
core: fix a problem with identifying certain m4a files.
Browse files Browse the repository at this point in the history
(cherry picked from commit 3d45d4c)
  • Loading branch information
mworrell committed Mar 2, 2017
1 parent 9ceb9a4 commit 633c165
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/support/z_media_identify.erl
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ identify_file_unix(Cmd, File, OriginalFilename) ->
"audio/" ++ _ = M -> {ok, [{mime,M}]};
_ -> {ok, [{mime, "video/x-ms-asf"}]}
end;
"video/mp4" ->
case guess_mime(OriginalFilename) of
"audio/" ++ _ = M -> {ok, [{mime,M}]};
_ -> {ok, [{mime, "video/mp4"}]}
end;
_ ->
{ok, [{mime, Mime}]}
end
Expand Down

0 comments on commit 633c165

Please sign in to comment.