[ 
https://issues.apache.org/jira/browse/TIKA-3646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112028#comment-18112028
 ] 

ASF GitHub Bot commented on TIKA-3646:
--------------------------------------

THausherr commented on PR #3114:
URL: https://github.com/apache/tika/pull/3114#issuecomment-5558159129

   I partly agree with copilot, because you also have this:
   ```
               byte[] header = boxes.read(position, 16);
               if (header == null || header.length < 8) {
                   return null;
               }
   ```
   so you can handle less than 8 bytes. `boxes.read()` should check the length. 
I disagree with copilot that it returns null whenever fewer than 8 bytes 
remain, because it would work if less than 8 bytes would be requested. Anyway, 
it feels kindof weird.




> MP4 files have their mime type detected as video/quicktime
> ----------------------------------------------------------
>
>                 Key: TIKA-3646
>                 URL: https://issues.apache.org/jira/browse/TIKA-3646
>             Project: Tika
>          Issue Type: Bug
>          Components: detector
>            Reporter: Apachae Tika User
>            Priority: Major
>         Attachments: Video.mp4
>
>
> I was using ScreenToGif tool which allos to record screen and create gifs or 
> MP4 files (with ffmpeg). I've tried to use Tika Detector for such files but 
> the file is being detected asĀ  video/quicktime with .qt extension. How is 
> that?
> Attaching small video for example which was generated with ScreenToGif and 
> saved as mp4.
> I see some other people complaining for same thing here
> [https://stackoverflow.com/questions/48021617/use-apache-tika-get-mp4-file-contenttype-got-video-quicktime]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to