Changeset 1025 for trunk


Ignore:
Timestamp:
Dec 24, 2017, 10:12:55 AM (3 years ago)
Author:
sommeria
Message:

pb for reading movies repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_file_info.m

    r1022 r1025  
    152152                            nbfield=numel(fieldnames(FileInfo));
    153153                            FileInfo=orderfields(FileInfo,[nbfield nbfield-3 nbfield-1 nbfield-2 (1:nbfield-4)]); %reorder the fields of fileInfo for clarity
     154                            if ~isfield(FileInfo,'NumberOfFrames')
     155                                FileInfo.NumberOfFrames=floor(FileInfo.Duration*FileInfo.FrameRate);
     156                            end
    154157                        end
    155158                    end
Note: See TracChangeset for help on using the changeset viewer.