mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libeplayer3/container_ffmpeg.c: re-order packet.data check (not sure whether this is needed at all)
This commit is contained in:
@@ -427,6 +427,12 @@ static void FFMPEGThread(Context_t *context) {
|
|||||||
|
|
||||||
if (av_read_frame(avContext, &packet) == 0 )
|
if (av_read_frame(avContext, &packet) == 0 )
|
||||||
{
|
{
|
||||||
|
if (!packet.data) {
|
||||||
|
ffmpeg_err("no data ->end of file reached ? \n");
|
||||||
|
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
long long int pts;
|
long long int pts;
|
||||||
Track_t * videoTrack = NULL;
|
Track_t * videoTrack = NULL;
|
||||||
Track_t * audioTrack = NULL;
|
Track_t * audioTrack = NULL;
|
||||||
@@ -818,13 +824,7 @@ static void FFMPEGThread(Context_t *context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (packet.data)
|
av_free_packet(&packet);
|
||||||
av_free_packet(&packet);
|
|
||||||
else {
|
|
||||||
ffmpeg_err("no data ->end of file reached ? \n");
|
|
||||||
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
|
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user