mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libeplayer3/container_ffmpeg.c: re-order packet.data check (not sure whether this is needed at all)
Origin commit data
------------------
Branch: master
Commit: b78249cd02
Author: martii <m4rtii@gmx.de>
Date: 2013-07-22 (Mon, 22 Jul 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -427,6 +427,12 @@ static void FFMPEGThread(Context_t *context) {
|
||||
|
||||
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;
|
||||
Track_t * videoTrack = NULL;
|
||||
Track_t * audioTrack = NULL;
|
||||
@@ -818,13 +824,7 @@ static void FFMPEGThread(Context_t *context) {
|
||||
}
|
||||
}
|
||||
|
||||
if (packet.data)
|
||||
av_free_packet(&packet);
|
||||
else {
|
||||
ffmpeg_err("no data ->end of file reached ? \n");
|
||||
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
|
||||
break;
|
||||
}
|
||||
av_free_packet(&packet);
|
||||
|
||||
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
|
||||
|
||||
|
Reference in New Issue
Block a user