| 
																	
																	
																		
																	
																	
																 | 
																@@ -1875,6 +1875,11 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom) | 
															
														
														
													
														
															
																 | 
																 | 
																    avio_rb24(pb); /* flags */ | 
																 | 
																 | 
																    avio_rb24(pb); /* flags */ | 
															
														
														
													
														
															
																 | 
																 | 
																    entries = avio_rb32(pb); | 
																 | 
																 | 
																    entries = avio_rb32(pb); | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    if (entries <= 0) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        av_log(c->fc, AV_LOG_ERROR, "invalid STSD entries %d\n", entries); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        return AVERROR_INVALIDDATA; | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																    if (sc->extradata) { | 
																 | 
																 | 
																    if (sc->extradata) { | 
															
														
														
													
														
															
																 | 
																 | 
																        av_log(c->fc, AV_LOG_ERROR, | 
																 | 
																 | 
																        av_log(c->fc, AV_LOG_ERROR, | 
															
														
														
													
														
															
																 | 
																 | 
																               "Duplicate stsd found in this track.\n"); | 
																 | 
																 | 
																               "Duplicate stsd found in this track.\n"); | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																	
																 | 
																
  |